package cn.chencq.cmd.util;

public  class CommandResult {
	public String successMsg;
	public String errorMsg;
	public int result;

	public CommandResult(int result) {
		super();
		this.result = result;
	}

	public CommandResult(int result, String successMsg, String errorMsg) {
		super();
		this.successMsg = successMsg;
		this.errorMsg = errorMsg;
		this.result = result;
	}

	@Override
	public String toString() {
		return "{\n\t\"successMsg\":" + successMsg + ",\n\t\"errorMsg\":" + errorMsg + ",\n\t\"result\":" + result + "\"\n}  ";
	}
}